/**
 * 
 */

var obj = new Object();

obj.property = "Property";

obj.methode = function(){
	console.log("obj.methode");
};

console.log(obj.prototype);

obj.methode();

console.log(obj.prototype);
console.log(obj.constructor);
obj.constructor.a = "a";
console.log(Object.a);
console.log(Object.property);

obj2 = new Object();
console.log(obj2.a);
(
	function (){
		console.log('Selbstzynder');
	}
)();
var objLiteral = {
		property : "Property",
		methode : function(){
			console.log("Literal");
		},
		verschacht : {
			innereProperty : "innereProperty",
			innereMethode : function(){
				console.log("innereMethode");
			}
		}
};
//
///*var obj2 = */function obj4(){
//	this.vare = "vaer;";
//};
//var obj3 = function (){};
//
//
//
//var obj5 = new obj2();
//var obj6 = new obj4();
//var obj7 = new obj3();



console.log(objLiteral.property);

objLiteral.methode();

console.log(objLiteral["property"]);

objLiteral["methode"]();

console.log(objLiteral.verschacht.innereProperty);

objLiteral.verschacht.innereMethode();

console.log(objLiteral["verschacht"]["innereProperty"]);

objLiteral["verschacht"]["innereMethode"]();

objLiteral.verschacht.newVar = "newVar";

console.log(objLiteral.verschacht.newVar);


